import { defineStore } from "pinia";

export const GoodStore = defineStore("good", {
  // 开启数据持久化
  persist: true,

  state: () => {
    return {
      userInfo: {}, //用户信息
    };
  },

  actions: {
    setUserInfo(payload) {
      this.userInfo = payload;
    },
  },
});
